﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.aswingui.buttonui {
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.event.*;
    import org.aswing.plaf.basic.*;
    import flash.ui.*;

    public class AddCoinsCashButtonUI extends BasicButtonUI {

        private static var viewRect:IntRectangle = new IntRectangle();
        private static var textRect:IntRectangle = new IntRectangle();
        private static var iconRect:IntRectangle = new IntRectangle();

        override protected function getPropertyPrefix():String{
            return ("AddCoinsCashButton.");
        }
        private function __stateListener(_arg1:AWEvent):void{
            button.repaint();
        }
        private function __onKeyDown(_arg1:FocusKeyEvent):void{
            if (!((button.isShowing()) && (button.isEnabled()))){
                return;
            };
            var _local2:ButtonModel = button.getModel();
            if ((((_arg1.keyCode == Keyboard.SPACE)) && (!(((_local2.isRollOver()) && (_local2.isPressed())))))){
                setTraversingTrue();
                _local2.setRollOver(true);
                _local2.setArmed(true);
                _local2.setPressed(true);
            };
        }
        private function __onKeyUp(_arg1:FocusKeyEvent):void{
            var _local2:ButtonModel;
            if (!((button.isShowing()) && (button.isEnabled()))){
                return;
            };
            if (_arg1.keyCode == Keyboard.SPACE){
                _local2 = button.getModel();
                setTraversingTrue();
                _local2.setPressed(false);
                _local2.setArmed(false);
                _local2.setRollOver(false);
            };
        }

    }
}//package Display.aswingui.buttonui 
